import request from '@/utils/request';
// 分页查询课程信息
export const getCourses = (data) => request({
  method: 'POST',
  url: '/boss/course/getQueryCourses',
  data,
});

export const getCourseById = (courseId) => request({
  method: 'GET',
  url: '/boss/course/getCourseById',
  params: { courseId },
});

export const getSection = (courseId) => request({
  method: 'GET',
  url: '/boss/course/section/getSectionAndLesson',
  params: { courseId },
});

export const getPurchaseCourse = () => request({
  method: 'GET',
  url: '/front/course/getPurchaseCourse',
});

export const videoPlayInfo = (lessonId) => request({
  method: 'GET',
  url: '/front/course/media/videoPlayInfo',
  params: { lessonId },
});

export default {};
